// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'
import Layout from '../../src/layout/index.vue'

export default {
  extends: DefaultTheme,
  Layout,
  // Layout,
  enhanceApp({ app, router, siteData }) {

    // ...
    if (!import.meta.env.SSR) {
      import('naive-ui').then((module) => {
        app.use(module.install)
      })
    }
  }
} satisfies Theme
